package com.lucfzy.employee;

import com.github.pagehelper.Page;
import com.lucfzy.jwt.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface EmployeeMapper {

    Page<Employee> findAll();

    int findByUsernameAndPassword(@Param("user") UserInfo userInfo);

    int findByUserName(@Param("username") String username);

    void insert(@Param("user") UserInfo userInfo);

    void updatePass(@Param("user") UserInfo userInfo);

}
